
<h3>{{rootColumnName}}
    <small>{{rootColumnPrompt}}</small>
</h3>
<div  ng-controller="accountCtrl" class="panel panel-default">
    <div class="businessState" ng-repeat="userItem in clearingList" >
        <div ng-if="userItem.clearingId==clearingId" >
            <span ng-click="hide()">×</span>
            <h4>更改业务状态</h4>
            <div class="radio">
                <label>
                    <input type="radio" name="inp"  value="1"  ng-model="type" >
                    待处理
                </label>
            </div>
            <div class="radio">
                <label>
                    <input  type="radio"  name="inp"  value="2"  ng-model="type" >
                    处理中
                </label>
            </div>
            <div class="radio">
                <label>
                    <input type="radio"  name="inp"  value="3"   ng-model="type" >
                    已处理
                </label>
            </div>
            <div class="btn">
                <button ng-click="hide()"  class="btn defalut btn-sm">取消</button>
                <button ng-click="confirm(type)" class="btn btn-primary btn-sm" >确认</button>
            </div>
        </div>
    </div>
    <div class="panel-heading">
        <form class="form-inline" style="margin-top: 20px">
            <div class="form-group">
                <input type="text" ng-keyup="dataEvent($event)" ng-model="searchKey" class="form-control" style="width: 250px" placeholder="{{searchplaceholder}}">
                <label for="">{{accountSelect}} : </label>
                <select class="custom-css form-control"  ng-model="accountSelectValue" ng-change="dataChange()" ng-options="accountSelectValue._value_ for accountSelectValue in accountType" >
                </select>
            </div>
        </form>
    </div>
    <div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
        <table class="table table-striped table-condensed">
            <thead>
            <tr>
                <th>编号</th>
                <th>手机号</th>
                <th>支付宝账号</th>
                <th>支付宝真实姓名</th>
                <th>提交申请时间</th>
                <th>结算金额(税前)</th>
                <th>结算金额(税后)</th>
                <th>发票类型</th>
                <th>结算类型</th>
                <th>订单状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <!-- repeat begin -->
            <tr ng-repeat="userItem in clearingList">
                <td>{{userItem.clearingId}}</td>
                <td>{{userItem.phoneNo}}</td>
                <td>{{userItem.alipay |null_value_filter}}</td>
                <td>{{userItem.realName|null_value_filter}}</td>
                <td>{{userItem.createTime}}</td>
                <td>{{userItem.money}}</td>
                <td>{{userItem.atmoney}}</td>
                <td>{{userItem.invoiceType | invoiceType}}</td>
                <td>{{userItem.clearingType |clearingType}}</td>
                <td>{{userItem.state | state}}</td>
                <td>
                    <a tooltip="发票" ng-show="userItem.isInvoice==0" ng-click="piao(userItem.clearingId)" tooltip-trigger="mouseenter" class="btn btn-xs btn-danger">票</a>
                    <!-- 空位符-->
                    <a ng-show="userItem.isInvoice!=0" style="color:transparent"  class="btn btn-xs">票</a>
                    <a tooltip="查看" tooltip-trigger="mouseenter" class="btn btn-xs btn-success" ui-sref="cms.accountDetail({clearingType:userItem.clearingType,createTime:userItem.createTime,auditTime:userItem.auditTime,alipay:userItem.alipay,realName:userItem.realName,phoneNo:userItem.phoneNo,state:userItem.state,invoiceType:userItem.invoiceType,isInvoice:userItem.isInvoice,clearingId:userItem.clearingId})"><i class="fa fa-eye"></i></a>
                    <a tooltip="更改业务状态" tooltip-trigger="mouseenter" class="btn btn-xs btn-danger" ng-click="operate(userItem.clearingId,userItem.state)"><i class="icon-pencil"></i></a>
                </td>
            </tr>
            <!-- repeat end -->
            </tbody>
        </table>
        <p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
        <pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize"
                    num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
        </pagination>
    </div>

</div>